fix 'black' frame when textures are loaded, manage when images cannot be loaded