Adding paperclip gem and function