Can you assign an id to an image?

Working with a student who accidentally deleted an images folder. He can put the images back but they all have new ids, so the table which stores the id numbers is now woefully out of date. Is there any way to assign an id to an image, so that the images we recreate will have the same numbers as the table?

  Discussion posts and replies are publicly visible