Fix error in MosaicResampler.add_images_by_path