Asynchronous loading of images and use cache to speed up loading