Fixed an eraser issue in the paint element