Thanks. I was also having trouble figuring out how to decode the svg figure element into plaintext I can throw into a text editor and open in the browser. (I don't have any svg experience).
I checked the docs and switched the imageFormat to png and was able to see the render.
It's awesome that with svg I could style elements of the provided image however I want!