title: rounded image using SDWebImage
body: <p>I want to use SDWebImage in my code to use cache with my images but I want to use rounded images.</p>
  
  <p>With this code I have rounded images and works perfect:</p>
  
  <pre><code>NSString *imageURL = [noticia objectForKey:@"imagem"];
  
  UIImageView *imgView=[[UIImageView alloc] initWithFrame:CGRectMake(20, 5, 90, 70)];
  imgView.backgroundColor=[UIColor clearColor];
  [imgView.layer setCornerRadius:30];
  [imgView.layer setMasksToBounds:YES];
  [imgView setImageWithURL:[NSURL URLWithString:imageURL]];
  cell.imageView.image = UIGraphicsGetImageFromCurrentImageContext();
  [cell.contentView addSubview:imgView];
  </code></pre>
  
  <p>But I need to use SDWebImage and cache too so I have this code:</p>
  
  <pre><code>[cell.imageView setImageWithURL:[NSURL URLWithString:imageURL] placeholderImage:[UIImage imageNamed:@"placeholder.png"] ];
  </code></pre>
  
  <p>I want to know how I merge the codes to use SDWebImage and rounded image.</p>
  
  <p>I tried this code but not worked:</p>
  
  <pre><code>UIImageView *imgView=[[UIImageView alloc] initWithFrame:CGRectMake(20, 5, 90, 70)];
  imgView.backgroundColor=[UIColor clearColor];
  [imgView.layer setCornerRadius:30];
  [imgView.layer setMasksToBounds:YES];
  [imgView setImageWithURL:[NSURL URLWithString:imageURL]];
  [cell.imageView setImageWithURL:[NSURL URLWithString:imageURL] placeholderImage:[UIImage imageNamed:@"placeholder.png"] ];
  [cell.contentView addSubview:imgView];
  </code></pre>