Flask extension for easily resizing images in templates