pr07 added bilinear warping and mirror warping