changing the catching of the lack of match_template: raise an ImportError error in function that requires it.