Fixes S3 support for carrierwave and paperclip

Changes for images to work with S3 for both carrierwave and paperclip gem