Changed code snippet for better quality images.