feat: add image proximity operations for template matching

only sum of square differences is currently implemented
to be used only for very small templates, will be slow if used with big templates