title: Attempting a circular image, outputs a diamond shape?
body: <p>I have a weird issue coming up. I am parsing data and pulling out a URL for an image, then setting it to a cell's '<code>imageView</code>'. From what I can understand, I should set the size of the '<code>cornerRadius</code>' to half the image's height. Because I am pulling the data into a table view cell with a height of 100, I am setting the corner radius to 50.</p>
  
  <p>Yet when the view load's on the first initial load of the images, they are coming out as small diamonds. When I rotate the device (which rotates the table view too), it automatically brings back the full size image, with the roundness too.</p>
  
  <p>Here's an example image of the initial load,</p>
  
  <p><img src="https://i.stack.imgur.com/goE7E.png" alt="enter image description here"></p>
  
  <p>Does anybody know why this occurs?</p>
  
  <p>Here is my tableView code</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      static NSString *CellIdentifier = @"Cell";
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
      NSDictionary *generatedUsers = [self.randomlyGeneratedUsersArray objectAtIndex:indexPath.row];
      NSURL *url = [NSURL URLWithString:[generatedUsers valueForKeyPath:@"user.picture"]];
      cell.textLabel.text = [NSString stringWithFormat:@"%@ %@", [generatedUsers valueForKeyPath:@"user.name.first"], [generatedUsers valueForKeyPath:@"user.name.last"]];
      cell.detailTextLabel.text = [generatedUsers valueForKeyPath:@"user.location.street"];
      [cell.imageView setImageWithURL:url placeholderImage:[UIImage imageNamed:@"placeholder"]];
  
      cell.imageView.layer.cornerRadius = 50.0f;
      cell.imageView.layer.masksToBounds = YES;
  
      return cell;
  }
  </code></pre>