def deform(image, deformer, resample=Image.BILINEAR):
 return image.transform(image.size, Image.MESH, deformer.getmesh(image), resample)

def deform ( image , deformer , resample = Image . BILINEAR ) : return image . transform ( image . size , Image . MESH , deformer . getmesh ( image ) , resample )
deform the image .