I can't say I'm totally clear on the idea (this code was lifted directly from `io/_io.py`), but I believe it was written to support persistence of image-edits made in `skivi` (a.k.a. the "fancy" qt imshow).