title: UIImage resizes unexpectedly
body: <p>I have View Controller inside the View Controller I have placed a UIImageView I am trying to draw on the image present in the UIImageView in this manner.</p>
  
  <pre><code>- (void)viewDidLoad {
   [super viewDidLoad];
   [self.drawImageView setImage:editableImage];
   UIPanGestureRecognizer *panGesture = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(drawingViewDidPan:)];
   panGesture.maximumNumberOfTouches = 1;
   self.drawImageView.userInteractionEnabled = YES;
   [self.drawImageView addGestureRecognizer:panGesture];
  }
  </code></pre>
  
  <p>Where drawImageView is my UIImageView and editableImage is the UIImage I am trying to draw on.</p>
  
  <p>I am implementing the drawing part as follows </p>
  
  <pre><code>- (void)drawingViewDidPan:(UIPanGestureRecognizer*)sender
  {
    CGPoint currentDraggingPosition = [sender locationInView:drawImageView];
  
    if(sender.state == UIGestureRecognizerStateBegan){
       prevDraggingPosition = currentDraggingPosition;
    }
  
    if(sender.state != UIGestureRecognizerStateEnded){
        [self drawLine:prevDraggingPosition to:currentDraggingPosition];
    }
    prevDraggingPosition = currentDraggingPosition;
  }
  
  -(void)drawLine:(CGPoint)from to:(CGPoint)to
  {
    CGSize size = drawImageView.frame.size;
    UIGraphicsBeginImageContextWithOptions(size, NO, 0.0);
  
    CGContextRef context = UIGraphicsGetCurrentContext();
  
    [drawImageView.image drawAtPoint:CGPointZero];
  
    CGFloat strokeWidth = 5.0;
    UIColor *strokeColor = [UIColor redColor];
  
    CGContextSetLineWidth(context, strokeWidth);
    CGContextSetStrokeColorWithColor(context, strokeColor.CGColor);
    CGContextSetLineCap(context, kCGLineCapRound);
  
  
    CGContextMoveToPoint(context, from.x, from.y);
    CGContextAddLineToPoint(context, to.x, to.y);
    CGContextStrokePath(context);
  
    drawImageView.image = UIGraphicsGetImageFromCurrentImageContext();
  
    UIGraphicsEndImageContext();
  }
  </code></pre>
  
  <p>The problem is as soon as I place my finger to draw the UIImage resizes and becomes small rest all works good </p>
  
  <p>How can I solve this ?</p>
  
  <p>My editableImage is coming from another viewcontroller which has a button called draw</p>
  
  <pre><code>-(IBAction)drawOnOmage:(id)sender {
      [self performSegueWithIdentifier:@"MySegue1" sender:self];
  }
  
  -(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    ThirdViewController *destinationController = (ThirdViewController *)segue.destinationViewController;
    destinationController-&gt;editableImage = self.editImage.image;
  }
  </code></pre>