image-warping: Add a texture mapping function.

From 6502’s answer:
http://stackoverflow.com/questions/4774172/image-manipulation-and-textur
e-mapping-using-html5-canvas