Code clean up and small tweaks for render's drawDebug().