Implemented path drawing for hit test.