Increasing quality of images