added UploadPhoto business logic