It would be convenient/save a `pio` import if e.g. `fig.to_json()` and `fig.to_image()` etc just worked out of the box :)