Fix loading of menuimages and fix foreground mapanimations

Edit: Also fixes menu animations (thanks to heinrich5991)