         }
         
         if dismiss {
+            self.delegate?.imagePickerSheet?(self, clickedButtonAtIndex: buttonIndex)
             self.dismissWithClickedButtonIndex(buttonIndex, animated: true)
         }
     }

@objc protocol BRNImagePickerSheetDelegate {
    optional func imagePickerSheet(imagePickerSheet: BRNImagePickerSheet, clickedButtonAtIndex buttonIndex: Int)
    optional func imagePickerSheetCancel(imagePickerSheet: BRNImagePickerSheet)
    
    optional func willPresentImagePickerSheet(imagePickerSheet: BRNImagePickerSheet)
    optional func didPresentImagePickerSheet(imagePickerSheet: BRNImagePickerSheet)

            
            self.setNeedsLayout()
            UIView.animateWithDuration(BRNImagePickerSheet.enlargementAnimationDuration*5, animations: { () -> Void in
                self.tableView.beginUpdates()
                self.tableView.endUpdates()
                self.layoutIfNeeded()
                //self.collectionView.scrollToItemAtIndexPath(indexPath, atScrollPosition: .CenteredHorizontally, animated: false)
                scrolled = true
                }, completion: { (finished) -> Void in
                    let layout: BRNHorizontalImagePreviewFlowLayout = self.collectionView.collectionViewLayout as BRNHorizontalImagePreviewFlowLayout
