Resize, optimise and serve images in Node.JS