Added flipping to Channel_resampled()