This fixes a bug in the training code that caused only the first (same) `nSamplesPerClass` images in each class to be sampled every time rather than sampling from all of the person's images.