I instantiate a new `PathElement` because I can not retrieve the path from DOM when this method is called. So I create a temporary `path` just to compute the center. 
I don't really know if this is an expected behaviour.