Polyline drawing improvements