A Javascript function to convert a MathJax SVG to PNG