Cleaned up the tracking of points when drawing a series of lines.