   private func processImage() {
     var colors: [String: UIColor] = self.analyzeImage(self.image)
     
-    self.backgroundColor = colors[self.kAnalyzedBackgroundColor]!
-    self.primaryColor    = colors[self.kAnalyzedPrimaryColor]!
-    self.secondaryColor  = colors[self.kAnalyzedSecondaryColor]!
-    self.detailColor     = colors[self.kAnalyzedDetailColor]!
+    self.backgroundColor = colors[self.analyzedBackgroundColor]!
+    self.primaryColor    = colors[self.analyzedPrimaryColor]!
+    self.secondaryColor  = colors[self.analyzedSecondaryColor]!
+    self.detailColor     = colors[self.analyzedDetailColor]!
   }
   
   private func analyzeImage(inputImage: UIImage) -> [String: UIColor] {

    
    var dict: Dictionary = Dictionary<String, UIColor>()

    dict[self.kAnalyzedBackgroundColor] = backgroundColor
    
    if primaryColor == nil {
      if darkBackground {
        dict[self.kAnalyzedPrimaryColor] = UIColor.whiteColor()
      } else {
        dict[self.kAnalyzedPrimaryColor] = UIColor.blackColor()
      }
    } else {
      dict[self.kAnalyzedPrimaryColor] = primaryColor.memory
    }

    
    if secondaryColor == nil {
      if darkBackground {
        dict[self.kAnalyzedSecondaryColor] = UIColor.whiteColor()
      } else {
        dict[self.kAnalyzedSecondaryColor] = UIColor.blackColor()
      }
    } else {
      dict[self.kAnalyzedSecondaryColor] = secondaryColor.memory
    }

    
    if detailColor == nil {
      if darkBackground {
        dict[self.kAnalyzedDetailColor] = UIColor.whiteColor()
      } else {
        dict[self.kAnalyzedDetailColor] = UIColor.blackColor()
      }
    } else {
      dict[self.kAnalyzedDetailColor] = detailColor.memory
    }
    
    return dict

  var secondaryColor: UIColor?
  var detailColor: UIColor?
  
  let analyzedBackgroundColor: String = "analyzedBackgroundColor"
  let analyzedPrimaryColor: String    = "analyzedPrimaryColor"
  let analyzedSecondaryColor: String  = "analyzedSecondaryColor"
  let analyzedDetailColor: String     = "analyzedDetailColor"
  
  convenience init(inputImage: UIImage) {
    let sampleSize: CGSize = CGSize(width: 64, height: 64)

    self.init(inputImage: inputImage, imageSampleSize: sampleSize, minimunColorCount: 0)
  }
  
  init(inputImage: UIImage, imageSampleSize: CGSize, minimunColorCount: Int) {
    self.minimunColorCount = minimunColorCount
    
    self.image = SwiftColorArt.resizeImage(inputImage, targetSize: imageSampleSize)
    
    self.processImage()
  }
