Fix custombrush overlay bug when clearing the canvas.