maskdraw = ImageDraw.Draw(mask)
maskdraw.polygon(dst_tri, fill=255)
dstdraw = ImageDraw.Draw(dst_img)
dstdraw.polygon(dst_tri, fill=(255, 255, 255))
dst_img.show()
dst_img.paste(transformed, mask=mask)
dst_img.show()
im100 = Image.open('test100.jpg')
im250 = Image.open('test250.jpg')
tri1 = [(10, 10), (20, 20), (10, 20)]
tri2 = [(35, 30), (75, 19), (50, 90)]
transformblit(tri1, tri2, im100, im250)
Copying triangular image region with PIL