optimized INTER_LINEAR mode