app/controllers/photos_controller.rb
conditions added for cover photo
conditions added for cover photo