Clear the canvas using compositing operation. This will clear the canvas independent of transforms but is not as fast as clearRect().
clearRect()
ctx.globalCompositeOperation = 'copy';
anything drawn next will clear previous content.