separated the logic in TNodeSprite for drawing and computing the length of edges. This allows the edge drawing stuff to be overridden for more customized edge rendering.