Text this: Tackling copyright issues in AI image generation through originality estimation and genericization