Resampling pixel images