 
     static func ratioForAsset(asset: ALAsset?, indexPath: NSIndexPath) -> CGFloat {
 
+       
         if let ratio = itemsRatioCache[indexPath.section] {
             return ratio
         }

    
    static var itemsRatioCache = [Int : CGFloat]()

    static func itemSizeForType(type: BRNImagePickerSheetItemSize, asset: ALAsset?, indexPath: NSIndexPath?) -> CGSize {
        var ratio: CGFloat = 1.0


        if let _asset = asset {
            let ratio = _asset.defaultRepresentation().dimensions().width / _asset.defaultRepresentation().dimensions().height;
            itemsRatioCache[indexPath.section] = ratio
            
            return ratio
        }
    
        return 1.0
    }
}
