set orientation when image is from camera

When I use from UIImagePickerController and crop image from camera, sometimes image rotate 90 degree because of jpeg EXIF data. (see this: http://stackoverflow.com/questions/3554244/uiimagepngrepresentation-issues-images-rotated-by-90-degrees)

so in getCroppedImage method I modified [UIImage  imageWithCGImage:] to [UIImage imageWithCGImage: scale: orientation:]