fix bug -- unable to load image to s3