As Limnos has already stated.
If you did a complete Erase All Contents and Settings of your iPad and you didn't back up the data on that iPad before you did this, any data, including photos, is gone for good. Your photoslimages are gone and gone forever.
“Erase All Contents” means EVRFYTHING get erased off of the device, permanently.
That iPad ends up being the way it was when it was new and still in the box.
Your photos/images have been permanently erased. Thd photo/images are gone.
Sorry.
Don't ever perform a complete factory reset of any mobile computing device or computer until you have established a backup of all of the data from those devices.