Apparatus and methods are described including a processor (20) configured to receive first and second sets of extraluminal images of a lumen, the second set being acquired while an endoluminal device is being moved through the lumen. The processor designates at least one of the first set of images as a roadmap image, and designates, within the lumen in the roadmap image, a roadmap pathway (42). A plurality of features (44, 46, 48, 50) that are visible within at least some of the second set of extraluminal images are identified, and an arrangement of three or more of the features within the image are compared to a shape of at least a portion of the roadmap pathway. Based upon the comparing, the identified features are mapped to locations along the roadmap pathway within the roadmap image. Other applications are also described.