Add clearCache function to ImagesLoaded