change a lot  add libelas libray can get disp image and  control the image .mat ram on different threads