Change image matrix to float, and printing of image to uint8