paperclip gem and functionality