edited photo.rb in the models folder