A Unifying Framework for Image Inpainting