let's add a ctx.save() here, and a ctx.restore() after the stroke call to fix the line width problem