refactor drawing anchor and inline