Fig bug of origin computation in image resampling