Convert mathematical equations to base64 encoded images.