only create each svg pattern once
typo fixes
Merge pull request #501 from code-dot-org/patternCache

[Finishes #69716570] only create each svg pattern once