getting amazon s3 working for image storage