Used filterCanvas.clear() to clear dirty canvas.