It would take some more work.....
But you could generate a CSV file via the Inventory Reports in the ZCC to include the details such as MAC and Serial Number from when you manually created the devices.
Then have your imaging script parse the CSV file to look for matches....