                 
                 let needsVerticallyCenteredColon = needsVerticallyCenteredColonForCharacterAtIndex(charactersIndex, characters: text.characters)
                 let currentLayerMatches =
-                    currentLayer?.valueForKey("myContents") as? String == String(char) &&
+                currentLayer?.valueForKey("myContents") as? String == String(char) &&
                     currentLayer?.valueForKey("verticallyCenteredColon") as? Bool == needsVerticallyCenteredColon
-
+                
                 if currentLayerMatches {
                     charLayer = currentLayer!
                     charLayer.removeAllAnimations()
                     charLayer.frame.origin = currentOrigin
                 } else {
                     currentLayer?.removeFromSuperlayer()
-
+                    
                     charLayer = CALayer()
                     
                     let font = needsVerticallyCenteredColon ? self.font.verticallyCenteredColonFont : self.font

        aCoder.encodeObject(self.animationCurve, forKey: selfName + ".animationCurve")
        aCoder.encodeDouble(self.animationDuration, forKey: selfName + ".animationDuration")
    }

    public class DefaultImageCache: NSObject, NumberScrollLayerImageCache {
        private lazy var queue:dispatch_queue_t = {
            let queueAttr = dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL, QOS_CLASS_UTILITY, 0)
            let queue = dispatch_queue_create(String(DefaultImageCache.self) + ".queue", queueAttr)
            return queue
        }()

        public override init() {
            super.init()

            #if !os(OSX)
                NSNotificationCenter.defaultCenter().addObserver(self, selector: "evict", name: UIApplicationDidReceiveMemoryWarningNotification, object: nil)
                NSNotificationCenter.defaultCenter().addObserver(self, selector: "evict", name: UIApplicationDidEnterBackgroundNotification, object: nil)

                    #elseif os(iOS) || os(tvOS)
                        charLayer.contents = image.CGImage
                    #endif
                    
                    charLayer.frame = CGRect(origin: currentOrigin, size: imageSize)
                    
                    self.addSublayer(charLayer)
                }
                newLayers.append(charLayer)
                
                currentOrigin.x += charLayer.bounds.width
                boundingSize.width += charLayer.bounds.width
                boundingSize.height = max(boundingSize.height, charLayer.bounds.height)
            }
            
            contentLayersIndex++
            charactersIndex++
        }
