added content type validation to photo.rb to fix issues after paperclip ugrade