title: setImage for UIImageView in uitableviewcell lags scrolling in iOS
body: <p>I have a gallery view of photos that are downloaded from the internet so I used Enormego's EGOImageView. I noticed that when i scrolled down my tableview after the images were in the cache, the scrolling would lag. I immediately found that when the image was retrieved from the hard drive with <code>return [UIImage imageWithContentsOfFile:cachePathForKey(key)];</code> it was working on the main thread so I added the operation to an NSOperationQueue.  This reduced the lag by half but the scrolling still stuttered. After going through the code, I noticed that in the success method</p>
  
  <pre><code>- (void)imageLoaderDidLoad:(NSNotification*)notification {
      if(![[[notification userInfo] objectForKey:@"imageURL"] isEqual:self.imageURL]) return;
  
      UIImage* anImage = [[notification userInfo] objectForKey:@"image"];
      self.image = anImage;
      [self setNeedsDisplay];
  
      if([self.delegate respondsToSelector:@selector(imageViewLoadedImage:)]) {
          [self.delegate imageViewLoadedImage:self];
      }
  }
  </code></pre>
  
  <p>commenting out the <code>self.image = anImage;</code> got rid of the lag completely (but obviously I get no image).  And as far as I can tell, if I want to alter the UI, it must be done in the main thread. Is there a way to set the image for the EGOImageView without it lagging the scrolling?</p>
  
  <p>Note: the JPGs are around 50kB</p>
  
  <p>Thanks</p>