-(UIImage *)maskingImage:(UIImage *)image
{
CGImageRef maskRef = [image CGImage];
UIImage *img = [UIImage imageNamed:[arrayTextureImage objectAtIndex:textureIndex]];
CGImageRef imageRef = [[UIImage imageNamed:[arrayTextureImage objectAtIndex:textureIndex]] CGImage];
CGImageRef mask = CGImageMaskCreate(CGImageGetWidth(maskRef),
CGImageGetHeight(maskRef),
CGImageGetBitsPerComponent(maskRef),
CGImageGetBitsPerPixel(maskRef),
CGImageGetBytesPerRow(maskRef),
CGImageGetDataProvider(maskRef),
NULL, false);