add missing pattern (height->width) and make PATTERNS global
Merge pull request #2 from dmmn/master

add missing pattern (height->width) and make PATTERNS global