Follow the guideline on how to upload image directly to S3 in Rails