Decide paint/erase action on mousedown