Fixed javascript race condition with image caching and image.load not firing properly