How to plot mnist of kaggle data?

whenever i try to plot mnist dataset it plot tilt… why? 28 * 28 pixel I’m reshape


here my code link