Refactored filter to support inline latex properly.
Separated image filter since \includegraphics does not generate raw latex; fixed bugs with re-rendering parsed HaTeX; fixed bug with actionFilters not checking for action name.