use a CGPath rather than a bezier path to avoid any 'convenience' modifications to the gstate
Set up line width context. Also fix spelling of the line width slider