bend-image can read the points of the curve from a file and does not try to access a point outside the curve.