Update for promise-based API (drawing.drawDOM)