first inpainting code