fix set image wrong issue