Resample make_masks mosaic with nearest neighbor