Fixed bug of image display.