Added support for the new crossOrigin property in createPattern()