Change ofPath attributes while drawing?

Hello. I have an ofPath object drawing lines through the screen using path.toCurve(position) on each new frame (while the position is changing on each frame).
What I want to do is to draw the curve with a stroke width of 5 for example, and then change the width to 1 and continue drawing the same path but with different strokeWidth.
the problem is that when using path.setStrokeWidth(1) it changes all the already drawn path width, but I need to maintain the width of 5 units till the point I decide to change it and then continue the same line with width 1.
I need this:
image