refactoring EditPhotoActivity