beginning handle photo upload