Render math update

Major update to the render_math plugin