Fix scoping error

It only worked if --output-header was specified, due to a scoping
error.
Script to extract grid regions
Merge branch 'master' of github.com:kiln/cartograms
Fix off-by-one

The grid has dimensions (width + 1) x (height + 1); we were omitting
the final row.