When the window starts up, I first see a black background and only then the drawn elements appears. Can this be avoided?