fixed the photo-uploader