Update PhotoUpload function