                     if let downloadURL = self.downloadURL {
                         self.asyncFetchImage(with: downloadURL, progressBlock: checkProgressBlock, completeBlock: checkCompleteBlock)
                     }
-                })
+                }
             } else {
                 self.asyncFetchImage(with: downloadURL, progressBlock: checkProgressBlock, completeBlock: checkCompleteBlock)
             }

        
        if let downloadURL = self.downloadURL {
            if let extraInfo = self.item.extraInfo, let originalURL = extraInfo[DKPhotoGalleryItemExtraInfoKeyRemoteImageOriginalURL] as? URL {
                SDImageCache.shared().queryCacheOperation(forKey: originalURL.absoluteString, done: { (image, data, _) in
                    if image != nil || data != nil {
                        self.downloadURL = originalURL
                    }

                        self?.downloadOriginalImageButton.isEnabled = true
                        self?.downloadOriginalImageButton.isHidden = false
                    }
                }
            }
        } else {
            self.downloadOriginalImageButton.isHidden = true
