     internal func dismiss() {
         self.dismissViewControllerAnimated(true, completion: nil)
         
-        if let delegate = self.delegate {
+        if let delegate = self.pickerDelegate {
             delegate.imagePickerControllerDidCancel(self)
         }
     }

    internal func done() {
        self.dismissViewControllerAnimated(true, completion: nil)
        
        if let delegate = self.delegate {
            delegate.imagePickerController(self, didCompleteWithAssets: self.selectedAssets)
        }
    }

 */
public class DKImagePickerController: UINavigationController {

    public var pickerDelegate : DKImagePickerControllerDelegate?
    
    /// The maximum count of assets which the user will be able to select.
    public var maxSelectableCount = 999
