Fix aspect ratio changes on window resize