Removed unnecessary lines from photo.rb