Security Benefits and Side Effects of Labeling AI-Generated Images