an upload middleware for express app, upload images and make thumbs