reverse order of rows when writing out tiles.