Resampling for tsimage