 
         switch titleCurrent {
         case "watermark":
-            watermark = EFImage(finalImage)
+            if let finalImage = finalImage {
+                watermark = .normal(finalImage)
+            } else {
+                watermark = nil
+            }
             
-            var images = [EFImage]()
+            var images = [Ref<EFImage?>]()
             if let imageUrl = info[.referenceURL] as? URL,
                 let asset = PHAsset.fetchAssets(withALAssetURLs: [imageUrl], options: nil).lastObject {
                 images = selectedAlbumPhotosIncludingGifWithPHAssets(assets: [asset])
             }
-            if let tryGIF = images.first(where: { $0.isGIF }) {
-                watermark = tryGIF
+            if let tryGIF = images.first(where: { $0.value?.isGIF == true }) {
+                watermark = tryGIF.value!
             }
         case "icon":
             icon = finalImage

        picker.dismiss(animated: true)
    }


    /// 选择相册图片（包括 GIF 图片）
    /// http://www.jianshu.com/p/ad391f4d0bcb
    func selectedAlbumPhotosIncludingGifWithPHAssets(assets: [PHAsset]) -> [EFImage] {
        var imageArray = [EFImage]()

        let targetSize = CGSize(width: 1024, height: 1024)


            }
        )
        #endif
        if case let .normal(tryWaterMark)? = watermark {
            alert.addAction(
                UIAlertAction(title: "Average of watermark", style: .default) {
                    [weak self] _ in
