Prevents problems with erasing class names when switching between CSS and URL image types.