Refactor competition_photos_controller