paperclip gem.
aws gem.
some paperclip + s3 stuff.