The statute has an exception that allows the photographing of a nude minor if the parents or guardian give written consent and it is used for “a bona fide artistic, medical, scientific, educational, religious, governmental, judicial, or other proper purpose, by or to a physician, psychologist, sociologist, scientist, teacher, person pursuing bona fide studies or research, librarian, member of the clergy, prosecutor, judge, or other person having a proper interest in the material or performance.”