fixed loading issue with images