Replacement loop in latex2image is now non-infinite.