Adding eraser functionality to pen