web api for preprocessing images and storing them in S3