Fix to set not display bg image until fg is fully loaded.
Updated demo.