Ofcom has welcomed restrictions on Grok, X's AI chatbot, to prevent the generation of sexualised images.