a sample photo_uploader with resized function