Imgur clone in Rails