Job Looking at Immodest Things

Kvod harav is a man allowed to have a job that he must look at immodest things? such as a plastic surgeon or a Gynecologist

If its for the purpose of healing the halacha permits it.

Rabbi Shay Tahan