cleanup draw() for widgets and compositewidgets.