drawing boxes along polyline