If you get or allow those pictures to be made believing that they will never become public you are a fool regardless of the law.
I agree. But this statute appears to prohibit much more than just naked photos.