Improving the inpainting and drawing