Sets background color of window and sets window to maintain the aspect ratio