It's strange to put it in the DOM and remove it after.
Have a look to `pathSegList`, it returns a list of `PathSeg`.
Almost of them contains `x` and `y` attributes (except the last one).
We can calculate min/max points and calculate the center.
It's not perfect but I think better.