fn collect_images(dir: &Path, recursive: bool, out: &mut Vec<PathBuf>)
Recursively (or not) collect image file paths from dir into out.
dir
out