I have NO idea who told you that!!!
Well, no one had to
tell me. Let's look at the tea leaves:
We have heightened security concerns at all levels of aviation.
Soon, and I mean within five years, you will carry some sort of picture pilot ID, either on your pilot license itself or some other required format.
Background checks and aiport security checks will include a comparison of the image you submit to a visual file to ensure that you correspond correctly to your information.
As mentioned, there is no law that prohibits the submission of a photo. Not only would any such law be ruinous to the entertainment industry, but it could easily play havoc with security concerns.
While no one can force you to fill in a form that indicates age, gender or race, there is no law that I have heard of the prohibits a picture as a part of the pre-employment process.
Government spends a lot of time trying to take human preferances out of the employment equation, but people will always try to circumvent these restrictions. People have this odd idea that in a freee country, they should be free to hire whomever they want, for whatever reason, particularly if they own the company. This freedom of association was the first freedom we lost after WWII. There are others, but that is for another thread.