fixes for R2014b

Tested against 2014b and optimized progress window in templatematch
using texturemap.
critical bugfix for monochrome images
trying to remove imcorr folders
Merge remote-tracking branch 'origin/master'