createPattern now enforces patch size. Fixes #7.
clicking an empty area adds a pixel