CellImg(CellImgFactory<T> factory, CellGrid grid, ListImg<Cell<A>> imgOfCells, Fraction entitiesPerPixel)