blockmatching is now done on a gray Image