It's the weirdest thing — if I set `MAX` to any number lower than 48, it works fine, but with 48 the background images are suddenly slightly off