add new HighQualityInterpolation flag and use medium or high quality interpolation depending on the setting, medium is the default