Modified to be able to display the image.