added bench method to photos_controller