Optimize redraw and use correct background color