[imgproc]Add template match with mask.

Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
Please add a name for the new parameter (`mask`), so it will be clear what does the parameter used for.