Fixed! It was to do with how FireFox loads PNG data, which meant the map wasn't getting loaded correctly.