fixing image not loading issue