FIX: S3 image upload

This fixes the issue reported on meta: [Storing images on S3](http://meta.discourse.org/t/storing-images-on-s3/3370)