Changed some shit for AWS S3 and Paperclip compatibility