Cologne authorities say they've taken two men into custody on suspicion of involvement in sex crimes on New Year's Eve in the western German city after releasing photos of suspects.

Prosecutors' spokesman Ulrich Bremer said Wednesday a 26-year-old Algerian was recognized in one photo released Tuesday and was arrested in Kerpen, near Cologne. A 31-year-old Iraqi turned himself in in Hamm, northeast of Cologne, after recognizing himself in a photo, Bremer said.

The younger man is accused of being part of a group involved in the sexual assault and attempted robbery of a woman, and the older is suspected of making sexual comments to a woman and her family.

The spate of assaults and robberies, blamed largely on foreigners, caused public uproar as Germany faces a huge influx of migrants.