Use in-engine image scaling type according to the scaling type option (#10939)