Like many dermatologists , Dr. Richard Wagner of the University of Texas Medical Branch at Galveston was frustrated by patients who , while they knew exposure to ultraviolet light was dangerous , continued to lie in the sun -- even some who had developed skin cancer . ''