Modified instances of pattern.lengt to patternWidth/Height...
Merge branch 'master' of github.com:TrimBiggs/spims