added paperclip and imagemagick and related functionality