add calculate diffusion maps
Mat2QImage now supports gray image