solved the problem that picture too larget to be displayed,and some other issues