             let task = session.dataTaskWithRequest(request){
                 (data, response, error) -> Void in
                 
-                
                 if (error == nil && data != nil)
                 {
                     func displayImage()

                }
                
                dispatch_async(dispatch_get_main_queue(), dismissActivityIndicator)
                
                
            }
            
            task.resume()
            
        }
    }
    

                            self.imageThumbnail.image = UIImage(data: data!)
                            self.imageThumbnail.alpha = 1.0
                        })
                    }
                    
                    dispatch_async(dispatch_get_main_queue(), displayImage)
