set window width, height and drawing background