show latex math fomulas both in html5-canvas and node-canvas