Added _canvasCache to cache the canvases used for createPattern