Inpaint for NumPy arrays