Remove strokeArray and just use pointArray.