   let titleLabel = UILabel()
   var selected: Bool = false
   var toggle: Bool = false
+  
+  var imageMode: UIViewContentMode = UIViewContentMode.Center {
+    
+    didSet {
+      self.imageView.contentMode = self.imageMode
+    }
+  }
+  
   var titleInsets: UIEdgeInsets = UIEdgeInsetsZero {
     
     didSet {


private class TitleForState {
  
  var string: NSString?
  var state = UIControlState.Normal
}


    
    self.imageView.backgroundColor = UIColor.clearColor()
    self.imageView.userInteractionEnabled = false
    self.imageView.contentMode = UIViewContentMode.Center
    
    self.overlayView.backgroundColor = UIColor.clearColor()
    self.overlayView.userInteractionEnabled =  false
