Fix image not loading issue