implemented paperclip gem to app