I am using the ImageSecure script that was created here on Stack Overflow in this post: Full Secure Image Upload Script, and can be found on GitHub here: bjorno43 / ImageSec