if imagesLoaded plugin is available then wait until image(s) are loaded before setting the content