Turned background into a resource to prevent path problems
Changed theme switching, probably fixes #509 as well