Updated video aspect ratio with a smarter function