Algorithm can label parts of the spine on different types of images