add photo upload functionality