PolyLine widget implementation