Added s3 support for resource Image uplaod