The move follows backlash from the government and an Ofcom investigation, after some were found to use the tool to generate sexualised images of people.