trying to pin point error in photo.rb