Add tracking for graphic states.

Bug fixes. Add support for text-anchor attribute in svg text/tspan
element as well relative path for svg text.