     func setupGlossLayer() -> CALayer {
         let gloss = CALayer()
 
-        let image = NSImage(named: "Gloss")
-        let imageSource = CGImageSourceCreateWithData(image?.TIFFRepresentation, nil)
-        let glossyImage = CGImageSourceCreateImageAtIndex(imageSource, 0, nil)
+        if let image = NSImage(named: "Gloss") {
+            gloss.contents = image.CGImage
+        }
 
-        gloss.contents = glossyImage
         gloss.opacity = 0.8
         gloss.cornerRadius = 12.0
         gloss.masksToBounds = true

    attribute2: CAConstraintAttribute) -> CAConstraint {
        return CAConstraint.constraintWithAttribute(attribute, relativeTo: "superlayer", attribute: attribute2) as! CAConstraint
}

    required init?(coder: NSCoder) {
        super.init(coder: coder)

        self.wantsLayer = true
        self.layer = setupLayers()
    }

    func setupLayers() -> CALayer {
