Updated crossValidation so that the same training images can be used across all folds.