Piecewise affine warp corrections: bug fix generating the warp, ability to warp coloured images.