Added S3 code for paperclip