Fix photo uploading