BUG: mask interpolation should be nearest