Generating MNIST images from a CNN