add isImagesLoaded to ensure the images are loaded before rendering year line