Recreating Imgur using Ruby on Rails