revert using Line object in locate pictures with map, adding dealing with noisy input