Use imagesLoaded.