Node.js Express middleware to resize images and cache the results