Drawing an image is completely out
<p>Hi I'm using this code below to let a user "draw" their signature on a UIView component on my app:</p>

<pre><code>    UIGraphicsBeginImageContext(signature.frame.size);
    [drawImage.image drawInRect:CGRectMake(0, 0, signature.frame.size.width, signature.frame.size.height)];
    CGContextSetLineCap(UIGraphicsGetCurrentContext(), kCGLineCapRound);
    CGContextSetLineWidth(UIGraphicsGetCurrentContext(), 5.0);
    CGContextSetRGBStrokeColor(UIGraphicsGetCurrentContext(), 1.0, 0.0, 0.0, 1.0);
    CGContextMoveToPoint(UIGraphicsGetCurrentContext(), lastPoint.x, lastPoint.y);
    CGContextAddLineToPoint(UIGraphicsGetCurrentContext(), lastPoint.x, lastPoint.y);
    CGContextStrokePath(UIGraphicsGetCurrentContext());
    CGContextFlush(UIGraphicsGetCurrentContext());
    drawImage.image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext()
</code></pre>

<p>The issue I am having is that the drawing is not only is the drawing not in line with the pointer when in use in the simulator, the image is going outside of the designated UIView compontent and is getting smaller/out of focus the more I draw, as you can see in this image:
<img src="http://dl.dropbox.com/u/1545603/iphone-signature-issues.png" alt="alt text"></p>

<p>And after a few lines, showing the boundaries of the exact are of where I can draw:
<img src="http://dl.dropbox.com/u/1545603/iphone-signature-issues2.png" alt="alt text"></p>

<p>Any ideas on what's happening here?</p>

<p><code>lastPoint.y</code> is defined as: <code>lastPoint.y -= 20;</code></p>

<p>Any ideas on what on earth is happening here?</p>
