I guess you added this because I suggested reusing the mask to mask out the values in the image, but I meant that it should be done in the example---not within the inpaint function.