nearest_color
logoIndexedImageRows[y][x] = nearest_color(&logoRowPtrs[y][x*3],
iconsIndexedImageRows[y][x] = nearest_color(&iconsRowPtrs[y][x*3],