Flask Server resizing images on the fly