Feature/mnist image data layer

This adds the ability to train the mnist data set via the IMAGE_DATA layer.

Added in an attempt to reproduce #1333 via the mnist data set.