Added map image caching to decrease cpu usage and improve smoothnes of animation