Fixed a bug where tile images would sometimes load too late in firefox. This fix also reduces the initial load time.