func addImage(image1:UIImage ,toImage image2:UIImage )->UIImage {
UIGraphicsBeginImageContext(image1.size);
// Draw image1
image1.draw(in: CGRect.init(x: 0, y: 0, width: image1.size.width, height: image1.size.height));
// Draw image2
image2.draw(in: CGRect.init(x: 0, y: 0, width: image2.size.width, height: image2.size.height));
let resultingImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return resultingImage! ;
}