numpy onnxruntime torch matplotlib Pillow python-resize-image onnx