Modifying eraser behavior and change lineCap and lineJoin