bug fix for undefined self on imagesLoaded