Fix getWidth()/getHeight(), so non-square grids work.