Using PaperClip, source http://railscasts.com/episodes/134-paperclip?view=asciicast