         toolTipWhenFinished = ttip2
         toolTipWhenFinishedWithError = ttip3
     }
-
+    
     /// Remove all tooltips
     public func deleteToolTips() {
         toolTip = nil

    /// - parameter usesSpinningWheel: A Bool that determines whether or not a spinning wheel indicator displays during download
    public func downloadImageFromURL(url: String, placeHolderImage:NSImage? = nil, errorImage:NSImage? = nil, usesSpinningWheel: Bool = false) {
        cancelDownload()
    
        isLoadingImage = true
        didFailLoadingImage = false
        userDidCancel = false

    
    public func URLSession(session: NSURLSession, task: NSURLSessionTask, didCompleteWithError error: NSError?) {
        
        guard error == nil else {
            Swift.print(error?.localizedDescription)
            failureReset()
            return;
        }
            
            
        didFailLoadingImage = false
        userDidCancel = false
        guard let data = imageDownloadData else {
            Swift.print("Image data not downloaded correctly.")
            failureReset()
            return;
        }
        guard let img: NSImage = NSImage(data: data) else {
            Swift.print("Error forming image from data.")
            failureReset()
            return;
        }
        image = img
        isLoadingImage = false
        
        spinningWheel?.stopAnimation(self)
        spinningWheel?.removeFromSuperview()
        imageDownloadData = nil
        imageURLDownloadTask = nil
        errorImage = nil

    }
    
    //MARK: Tooltips
