added scaleAndRotate method to rotate a UIImage based on the exif orientation - useful when picking images from the camera roll.