reformed 1d image data into ndarray of 64x64 square arrays representing the images