Fix grouping of pixels during lower resolution level generation