Nodejs and Expressjs image resizer based on query