Using Tensorflow to recognize handwritten characters