update random sampler to always do a single sample per pixel for each iteration, and stop after samplesPerPixel iterations (unless continuous is true).