TemplateDetetion now runs for every colorchannel

Split templatedetection into two functions, one used for finding edges
in the image using its grayscale, the other using rgbchannels. Still not
working as it should
detection on rgbchannels implemented

TemplateDetection can now run once on every channel and merge the
result. Somehow seems to work worse than simply using the grayscale...
finished rgbchannel edgedetection

rgbchannels edgedetection works properly now, but only slightly better
than grayscale. Compared to the extra time, its hardly worth it.
minor change

nothing worth mentioning