         return self.buttonIndexForRow(lastRow)
     }
     
-    public var selectedPhotos: [UIImage] {
+    public var selectedPhotos: [NSURL] {
         get {
-            var selectedPhotos = [UIImage]()
+            var selectedPhotos = [NSURL]()
             for index in self.selectedPhotoIndices {
-                selectedPhotos.append(self.photos[index])
+                selectedPhotos.append(self.photos[index].url())
             }
             
             return selectedPhotos

    private let tableView = UITableView()
    private let collectionView: BRNImagePickerCollectionView
    
    public var enlargedPreviews = false
    public var delegate: BRNImagePickerSheetDelegate?
    private var photos = [UIImage]()
    private var selectedPhotoIndices = [Int]()
    private var previewsPhotos: Bool {
        return (self.photos.count > 0)

            })
        }
        
        library.enumerateGroupsWithTypes((1 << 4), usingBlock: { (group: ALAssetsGroup!, stop: UnsafeMutablePointer<ObjCBool>) -> Void in
            if group != nil {
                group.setAssetsFilter(ALAssetsFilter.allPhotos())
                group.enumerateAssetsUsingBlock({ (asset: ALAsset!, index: Int, stop: UnsafeMutablePointer<ObjCBool>) -> Void in
                    if asset != nil {
                        let representation: ALAssetRepresentation = asset.defaultRepresentation()
                        self.photos.insert(representation, atIndex: 0)
                        self.photosCache.addObject(NSNull())
                    }
                })
                
