this writes rawBg to console, but doesn't display it