Fix loading of menuimages and fix foreground mapanimations

What did the `if` do previously? Is this the "Fix foreground map animations" part?

Also, you altered the logic inside the `if`, you change `else if menulayers` to `if menulayers`. I s that intentional?