Flexible way to resize and upload images to Amazon S3 or file system storages for Node.js