Unnecessary "if" in Line.fromSprite method