Fixed a bug in the engine that caused the training data for block types to be
reset after each image.