fixed error in the photo.rb