Moved Path render code into Shape.