I am not familiar with your system.
You probably will want to be able to get at your invoice images based on the invoice # ... in other words if each invoice ends up in one image file, then you want a naming convention that includes the invoice #in the name, so you can access images by the invoice #
If several invoices end up in one image, then same deal ... you probably want a name that "says" some range of invoices.
If you do not have access to the source code, you may be doing someting illegal & will need to verify that you have a legal right to be modifying the data flow.
If you are able to "get at" the data in the virtual image "before" it goes to the file, then you want to "parse" the information that is in the virtual image to extract the invoice # & include it in the naming of the file.
Then when you access the image file in the future, anyone can access the image for a particular invoice, because it is part of the name of the image.
The question of auto-indexing records or file