Elon Musk's platform X on Wednesday announced measures to prevent its AI chatbot Grok from undressing images of real people, following global backlash over its generation of sexualized images of women and children.