title: The image is not filling the entire uiimageview width and height
body: <p>I have the following code:</p>
  
  <pre><code>UIGraphicsBeginImageContext(CGSizeMake(self.captureImageView.frame.size.width, self.captureImageView.frame.size.height));
  [image drawInRect: CGRectMake(0, 0, self.captureImageView.frame.size.width, self.captureImageView.frame.size.height)];
  UIImage *smallImage = UIGraphicsGetImageFromCurrentImageContext();
  UIGraphicsEndImageContext();       
  CGRect cropRect = CGRectMake(0, 0, self.captureImageView.frame.size.width, self.captureImageView.frame.size.height);
  CGImageRef imageRef = CGImageCreateWithImageInRect([smallImage CGImage], cropRect);
  
  [self.captureImageView setImage:[UIImage imageWithCGImage:imageRef]];
  
  CGImageRelease(imageRef);
  
  //rotation
  [UIView beginAnimations:@"rotate" context:nil];
  [UIView setAnimationDuration:0.5];
  int degrees = [self rotationDegrees];
  CGFloat radians =degrees * M_PI / 180.0;
  self.captureImageView.transform = CGAffineTransformMakeRotation(radians);
  [UIView commitAnimations];
  </code></pre>
  
  <p>when capturing the image in landscape mode either left or right the image presented in the uiimageview is no filling the entire frame.size and is always "short"</p>
  
  <p>can some one point what to fix/add in my code?</p>