Minor code simplification of DrawBox.