DrawHandler: optimize