 
 final class JMAnimatedImageView: UIImageView {
     private var imageFrames: [AnimatedImageFrame]?
-    private var displayLink: CADisplayLink?
     private var currentFrameRemainingDuration: NSTimeInterval = 0
     
     var repeats: Bool = false

    }
    
    // MARK: - CADisplayLink
    private func setUpDisplayLink() {
        if superview != nil && displayLink == nil {
            let displayLink = CADisplayLink(target: self, selector: #selector(self.dynamicType.refresh(_:)))
            displayLink.paused = true
            displayLink.addToRunLoop(.currentRunLoop(), forMode: NSRunLoopCommonModes)
            self.displayLink = displayLink
        }
    }
    
    private var previousTimestamp: CFTimeInterval?

    }
    
    private func setUpWithImageFrames(imageFrames: [AnimatedImageFrame]) {
        previousTimestamp = nil
        
        self.imageFrames = imageFrames
        
        imageFrame = imageFrames.first
