Added post html figure generation, slightly broken for pstricks