title: Images are setting incorrectly in cellForRowAtIndexPath in SDWebImage
body: <p>I'm using SDWebImage,
  I'm creating download progress effect same as WhatsApp app.</p>
  
  <p>The problem is that when I scroll tableView, It is showing incorrect images for cells.(i.e: When cells are reused random images are setting in cells.)</p>
  
  <p>Here is my code in Swift:</p>
  
  <pre><code>func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
  
      var cell:ImageCellTableViewCell = self.IBtblImageTable.dequeueReusableCellWithIdentifier("ImageCell", forIndexPath: indexPath) as ImageCellTableViewCell
      var url:NSURL = NSURL(string: imageArray[indexPath.row])!
      cell.tag = indexPath.row
      manager?.downloadImageWithURL(url, options: SDWebImageOptions.ProgressiveDownload, progress: { (recievedSize:Int, expectedSize:Int) -&gt; Void in
  
          if(recievedSize&gt;0){
  
              var progress:Float = 0
  
              progress = Float(recievedSize)/Float(expectedSize)
  
              println(CGFloat(progress))
  
  
          }else{}
  
      }, completed: { (image:UIImage!, error:NSError!, cacheType:SDImageCacheType, finished:Bool, url:NSURL!) -&gt; Void in
  
  
          if ((image) != nil &amp;&amp; cell.tag == indexPath.row)
          {
              dispatch_async(dispatch_get_main_queue(), { () -&gt; Void in
                  cell.IBimgCellImage.image = image
              })
  
          }
  
  
      })
  
      return cell
  }
  </code></pre>