         return doneButton
     }()
     
+    private lazy var numberFormatter: NSNumberFormatter = {
+        let formatter = NSNumberFormatter()
+        formatter.numberStyle = .NoStyle
+        return formatter
+    }()
+    
     //private var progressBackgroundView: SBView
     //private var progressField: NSTextField
     //progressField.stringValue = NSLocalizedString("Updating...", comment: "")

    private lazy var scaleField: SBBLKGUITextField = {
        let scaleField = SBBLKGUITextField(frame: NSMakeRect(6, self.imageViewSize.height - 216, 67, 24))
        scaleField.delegate = self
        return scaleField
    }()
    

                onlyVisibleButton.state = NSUserDefaults.standardUserDefaults().boolForKey(kSBSnapshotOnlyVisiblePortion) ? NSOnState : NSOffState
            }
            // Set image to image view
            widthField.integerValue = Int(r.size.width)
            heightField.integerValue = Int(r.size.height)
            scaleField.integerValue = 100
            update(field: nil)
            successScale = 1.0
            
