Removed the bug where sometimes it did not show the image on the first page.