Add support for imagesLoaded