Pass an explicit graphics context to DrawAttached and DrawMark