Simplify legend drawing.
closes #253.