fix bug in view image