                         if result == nil {
                             return
                         }
-                        
                         self.assets.append(result);
-                        self.photosCache.addObject(NSNull())
                     })
                     
                 } else {

    public var enlargedPreviews = false
    public var delegate: BRNImagePickerSheetDelegate?
    private var assets = [ALAsset]()
    private var photosCache = NSMutableArray()
    private var selectedPhotoIndices = [Int]()
    private var previewsPhotos: Bool {
        return (self.assets.count > 0)

    
    static var itemsRatioCache = [Int : CGFloat]()

    static func clearCache() {
        itemsRatioCache.removeAll(keepCapacity: false)
    }
    
    static func itemSizeForType(type: BRNImagePickerSheetItemSize, asset: ALAsset?, indexPath: NSIndexPath?) -> CGSize {
        var ratio: CGFloat = 1.0

