Update application_controller.rb

Update photo_display method