Thanks, gif displayed when remove 'start_html' lines. CGI manual says'The start_html() routine creates the top of the page, along with a lot of optional information that controls the page's appearance and behavior.This method returns a canned HTML header and the opening <body> tag. '. It seems to have nothing with displaying images, I am still confused why remove it can take effect.