Add clearCanvas function.