Initialize graphics last of all

So all initialization is done while loading dialog is displayed. Fixes
window initially appearing with a white background before the plash
screen. Tweaks have been made to loading dialog as well.