added paperclip gem functionality