update photo.rb