Converts a png image into a text file formatted as a int array in java