Detect when images have been loaded or preload them.