added support for images with paperclip gem