Legislation criminalises publishing of intimate images, including AI-created 'deepfakes', without a person’s consent.