Wait until all images are loaded