Make S3 image upload work locally