added amazon s3 access for images