added scaling to fit window but keep aspect ratio