These depictions were driven by the censorship of the code, which was willing to allow "sexual perversion" if it was depicted in a negative manner, as well as the fact that homosexuality was classified as a mental illness and gay men and women were often harassed by the police