How the grid is computed
The image is divided into cells of the chosen block size, measured in pixels. Every pixel within a cell is replaced by the cell's average color, so a detailed area becomes one uniform square. Doubling the block size quadruples the pixels averaged per cell, which is why the effect gets coarser so quickly.