Create image thumbnail on memory and response it using Flask and PILImage.