It says in Maseches Sota (8a) that that if a woman would be punished by stoning, she would be stoned virtually unclothed, and men would be allowed to attend. The Gemara says that there is no concern for improper thoughts as she is dead, and people only have thoughts for the woman which they saw unclothed (so they would not desire other women by seeing this one, and this one is dead).
Huh??? - If someone saw an inappropriate movie but in real life the actress was dead (he was watching an old movie), he won't have inappropriate thoughts??