adding images to s3 functionality-1