Fix display of images from s3 buckets.

still needed?