Fix aspect ratio computation