title: UIImageView cornerRadius is not making it circle
body: <p>I've a viewController that is presented inside a <code>UIView</code> as I'm using <a href="https://github.com/ermalkaleci/CarbonKit" rel="nofollow noreferrer">CarbonKit</a> to make tabs like android. </p>
  
  <p>I've a <code>userProfileViewController</code> which I'm showing under one of the tabs and this has the <code>UIImageView</code> which I'm making trying to show in a circle by using this code:</p>
  
  <pre><code>self.userDisplayPic.layer.cornerRadius = self.userDisplayPic.frame.size.width / 2;
  self.userDisplayPic.clipsToBounds = true
  </code></pre>
  
  <p>and the result is:
  <a href="https://i.stack.imgur.com/YvkIJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YvkIJ.png" alt="enter image description here"></a></p>
  
  <p>My guess is that it may be because of the autoresizing when presented inside a <code>UIView</code> might be compressing the design but other elements specially the update button seems fine. SO any suggestions how this can be fixed?</p>