fix imagesLoaded for data uri