Name overlap, misspellings, alternate spellings, fake names, aliases, nicknames, no names.
Let me bust out what, by this time, is an old trope: https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-...
Naked mugshots can be a solution in some places. Some write that in Russia police can beat the confession out of you, keep you for a couple of weeks in jail until the visible wounds heal and then send you to court together with the confession you signed.
Naked mugshots will not help in this specific situation, because the court is corrupt together with cops and they will just ignore the procedures. But if I had a choice, I'd prefer a naked mugshot to torture (and of course, they can torture you without leaving any traces; with electricity, for example).
Second, it seems that this same justification could be used to justify a lot of privacy breakdowns. For example:
Question: “Why are the suspects naked in the mugshots?”
Answer: “This is actually a civil rights thing to show that they were not beaten up during their arrest. Before, police would hit suspects where their clothes would cover the injuries, but with naked mug shots published on the Internet, they can’t do that any more.”