Simplify defs of getWidth and cropLine