added some comments to image-preloading code