I create a png file and view it on macOS with
[...] image.save("mandel.png", "PNG") p = subprocess.run(["open", "mandel.png