How can you stop your penis from erecting?

Pleae dont imagine a woman( or man if you are a gay) naked when seeing them.