Actually use parameters in PatchMatch code