sleep after displaying the image.