Cleaning up linework