Initialize graphics after adding files

So the screen isn't cleared before displaying an error.