             if let contentWidth = self.contentWidth {
                 if let imageViews = self.imageViews {
                     for imageView in imageViews {
+                        imageView.image = nil
+                        imageView.animatedImage = nil
                         imageView.removeFromSuperview()
                     }
                 }

                    }
                    
                    lastImageView = imageView
                }
                
                self.imageViews = imageViews


        if let imageViews = self.imageViews {
            for imageView in imageViews {
                imageView.image = nil
                imageView.animatedImage = nil
                imageView.removeFromSuperview()
            }
        }

        self.imageViews = nil
    }

    func updateImages() {
