Image uploader that resizes and saves an uploaded image