Move clamping to quality=