Simple flickr clone in Rails