This won't quite toggle correctly when moving from png to jpg, or jpg to anything - let's add `[ f.type_printers.pop(Figure, None) for f in svg,png,jpg... ]` to the top, then only turn them on in the `if/elif/elif` branch. That will be more consistent.