refactoring of ResizePhotoService and inherited interface