Revert "replace ascii math with latex-generated images"

This reverts commit a17043758ab37fd99783db2017509447f5c1ad88.