The Pentagon will publish 198 photos of tortured detainees in the US prisons in Iraq and Afghanistan on Friday, a top American civil rights group has said.