Avoid Copyright Risks with AI-Generated Images