fix dynamic load images bug