add skeleton code for inpainting.