   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 secondaryColor: UIColor?
  var detailColor: UIColor?
  
  let kAnalyzedBackgroundColor: String = "kAnalyzedBackgroundColor"
  let kAnalyzedPrimaryColor: String    = "kAnalyzedPrimaryColor"
  let kAnalyzedSecondaryColor: String  = "kAnalyzedSecondaryColor"
  let kAnalyzedDetailColor: String     = "kAnalyzedDetailColor"
  
  convenience init(inputImage: UIImage) {
    self.init(inputImage: inputImage, minimunColorCount: 0)
  }
  
  init(inputImage: UIImage, minimunColorCount: Int) {
    self.minimunColorCount = minimunColorCount
    
    let targetSize:CGSize   = CGSize(width: 64, height: 64)
    let scaledImage:UIImage = SwiftColorArt.resizeImage(inputImage, targetSize: targetSize)
    
    self.image = scaledImage
    
    self.processImage()
  }

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

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

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

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