corrected photo upload