And I'm trying to add an eraser ... Should I just draw a white rectangle where the mouse is, or what?
That sounds reasonable to me. Or some other shape such as a circle if you prefer, although all the erasers I've seen in painting programs have been square, as far as I remember.
-- Greg