Dental photography is primarily used to support the dentist during the patient's initial examination, as well as to aid in diagnosis and long-term management of the patient's medical treatment.