Patch size adaptive image inpainting