Lockett, who was shot in the groin early Sunday, told police that he was fired upon “by an unidentified person behind him,” according to a Circuit Court filing, which notes that the 27-year-old was treated at Froedtert Hospital “for a single gunshot wound to his penis.”

Since hospital workers reported that the bullet’s trajectory was a “downward 45-degree angle,” cops suspected that Lockett accidentally shot himself. Which means that the convicted felon, who is on probation, was illegally in possession of a handgun.

So, as first reported by the Milwaukee Journal Sentinel, Detective Gena Malanche Wednesday filed for a search warrant seeking permission to have medical personnel “safely remove any bandages in the area of Lockett’s groin to facilitate photography of the area.” The resulting photos, Malanche added, would help investigators establish that Lockett was a felon in possession of a firearm.

The warrant was approved by Court Commissioner Barry Phillips, who authorized cops to “photograph the penis of Otis Lockett for analysis by the proper authorities.”

Lockett’s penis was, in fact, photographed Wednesday evening, though court records do not identify the name of the shutterbug. A Milwaukee Police Department property inventory notes that a CD of “photos taken of Lockett’s injuries pursuant to warrant” had been logged.