Increasing the image quality in thumbnail