fix for image not loaded issue