Express framework middleware for creation of thumbnails on the fly