Headlight optimization for night driving