Algorithm for vectorizing pixel images.