Replace Latex formulas with png image.