added paperclip gem and made changes for its dependencies