 
         return mergedImage
     }
-    
+
 }

// MARK: - Utility

    func mergeImages(images: [UIImage!], toImageWithSize size: CGSize, andOffset offset: CGFloat) -> UIImage! {
        UIGraphicsBeginImageContext(size)
        var idxDec: CGFloat = CGFloat(images.count)
        var idxInc: CGFloat = 0
        for img in images.reverse() {
            let newOrigin = CGPoint(x: idxDec * offset, y: idxInc * offset)
            let newWidth = size.width - (offset * 2 * idxDec)
            let newSize = CGSize(
                width: newWidth,
                height: newWidth
            )
            img.drawInRect(CGRect(origin: newOrigin, size: newSize))
            idxInc++
            idxDec--
        }

        phFetchOptions.predicate = NSPredicate(format: "estimatedAssetCount > 0")
        self.collectionsFetchResult = PHAssetCollection.fetchAssetCollectionsWithType(PHAssetCollectionType.Album, subtype: PHAssetCollectionSubtype.Any, options: phFetchOptions)

    }

    func cancelImagePicker() {
