TeXZilla.toImage: use a configurable XMLSerializer function instead of outerHTML to give it a chance to work outside a browser context.