Inpainting

Improvement of inpainting algorithm. Now it works faster, especially for high resolution images.