Get rid of iterative genPixels