Convert Pixel[][] to int[][]