Fixed bug in templatematch

resizefun fallback for no images toolbox did not work.