Use a lookup table to do cubic resampling