fixed latex figure handling, added latex example
Merge pull request #17 from wildart/tex

fixed latex figure handling, added latex example