Use nearest neighbor for resampling masks.