walla, i did manage to make this work using
Code Sample: Crop an image using the iPhone SDK | Hive05 software products
had to do some manipulations though. And one more important thing the 0,0 of the image is taken as left bottom corner. So imagine that the image is in first quadrant of a 2D axis.