More changes on s3 implementation for resource image