updated the way the image is displayed