remove flipud to cell_id_grid, restore 0 based indexing