If the machine was in the domain before you reimaged, then you’ll need to reset the computer account or delete the computer account before you can add it back as the same name.

If you have computers in specific OU’s, then you can just reset the computer accounts and the domain adds should work.