Wait for caching of images is complete

We incorporate PreloadJS to realize it.