- (UIImage *)getScaledImageWithImage:(UIImage*)oldImage
targetSize:(CGSize)targetSize;
{
UIGraphicsBeginImageContext(targetSize);
[oldImage drawInRect:CGRectMake(0,0,targetSize.width,targetSize.height)];
UIImage* newImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return newImage;
}