fix the image not loaded bug