Digit recognizer using MNIST data