Make sure fog texture is loaded before trying to convertToImage