Fixed reference problens and adjusted quality of images