Updated

A Salt Lake City man has been sentenced to prison after admitting to driving drunk and rear-ending another vehicle while trying to take a picture of the sunset, causing one of the other car's passengers to die and injuring two others.

The Salt Lake Tribune reports 31-year-old Carter Foulger was sentenced Monday to up to 10 years in prison. He pleaded guilty last year to a third-degree felony count of auto homicide and two counts of driving under the influence.

Foulger told police he swerved into the rear of a Volkswagen Golf while trying to take a picture of the May 30 sunset. The Volkswagen had hazard lights on and was prepared to pull over so the occupants could watch the sunset when the crash occurred.