Improving image output quality