modify photo upload