Cleaning up the visualization in the mnist example.