Update ImageToMatrix.java