 }
 
 private class AnimatedImageCell: UICollectionViewCell {
-    private let imageView = AnimatedImageView(frame: CGRectZero)
+    private let imageView = FLAnimatedImageView(frame: CGRectZero)
     private let progressView = UIProgressView()
     
     override init(frame: CGRect) {

        super.prepareForReuse()
        self.progressView.progress = 0
        self.progressView.alpha = 1
        self.imageView.prepareForReuse()
    }
}

    }
    
    func setImageWithRequest(request: ImageRequest) {
        let task = self.imageView.nk_setImageWithRequest(request)
        task.progress = { [weak self, weak task] _, _ in
            guard let task = task where task == self?.imageView.nk_imageTask else {
                return
            }
            self?.progressView.setProgress(Float(task.fractionCompleted), animated: true)
            if task.fractionCompleted == 1 {
                UIView.animateWithDuration(0.2) {
                    self?.progressView.alpha = 0
                }
            }
        }
        if task.state == .Completed {
            self.progressView.alpha = 0;
        }
    }
