         doneButton.alpha = 1.0
         doneButton.addTarget(self, action: Selector("doneButtonPressed"), forControlEvents: .TouchUpInside)
         
-        if doneButtonImage == nil {
-            doneButton.setTitleColor(UIColor(white: 0.9, alpha: 0.9), forState:[.Normal, .Highlighted])
-            doneButton.setTitle(SSPhotoBrowserLocalizedStrings("X"), forState: .Normal)
-            doneButton.titleLabel?.font        = UIFont.boldSystemFontOfSize(11)
-            doneButton.backgroundColor = UIColor(white: 0.1, alpha: 0.5)
-            doneButton.sizeToFit()
-            doneButton.layer.cornerRadius = doneButton.bounds.size.width/2
-        }
-        else {
-            doneButton.setBackgroundImage(doneButtonImage, forState: .Normal)
-            doneButton.contentMode = .ScaleAspectFit
-        }
-        
         let bundle = NSBundle(forClass: SSImageBrowser.self)
         var imageBundle: NSBundle?
         if let path = bundle.pathForResource("IDMPhotoBrowser", ofType: "bundle") {

    }
    
    private func dismissPhotoBrowserAnimated(animated: Bool) {
        
        modalTransitionStyle = .CrossDissolve
        delegate?.photoBrowser?(self, willDismissAtPageIndex: currentPageIndex)
        dismissViewControllerAnimated(animated, completion: {[weak self] in

    public weak var leftArrowSelectedImage: UIImage!
    public weak var rightArrowImage: UIImage!
    public weak var rightArrowSelectedImage: UIImage!
    public var doneButtonImage: UIImage!
    public var doneButtonImageForeground: UIImage!
    public weak var scaleImage: UIImage!
    
    public weak var trackTintColor: UIColor!
