fix looping bounds in film::add_sample