Moving to an distance-based model from a pixel model