small optimization to MGBoxes with opaque border line and background colors