             
             attachment.loadDataRepresentation(forTypeIdentifier: "public.image", completionHandler: { (data, error) in
                 if error != nil {
-                    print("do somthing to inform error")
+                    self.showAlert(message: self.makeErrorMessage(message: "Failed to fetch an image", error: error!), completionHandler: nil)
                     return
                 }
 
                 if data != nil {
+                    ImgurManager.shared.uploadImage(image: data!) { (data, error) in
+                        if let error = error {
+                            self.showAlert(message: ("Failed to upload an image. Retry later." + " :\(error.localizedDescription)"), completionHandler: {
+                                return
+                            })
+                        }
+                        
+                        if let data = data {
+                            let text = "![imgur image upload at \(data.datetime)](\(data.url))\n"
+                            // making issue
+                        }
+                    }
                     print("data fetched: \(data)")
                 }
             })

        self.contentText
    }
    
    // MARK: - ReposSelectionTableViewControllerDelegate
    func repoSelection(_ tableView: UITableView, didTapped indexPath: IndexPath, repoName: String) {
        self.fullRepoName = repoName

import UIKit
import Social
import Photos
import NetworkFramework

class ShareViewController: SLComposeServiceViewController, ReposSelectionTableViewControllerDelegate {
    
