Refactor CIFAR10 to use preprocessors (fixes #199).