add imagesLoaded to manage background image