Fix lineStyle change mid path on graphics