modified UploadPhoto class and added test cases to UploadPhotoTest