How to pass a dynamic image variable in the body of SMTP mail so that there will be no coincidence with the previous images?

I have to automate the process inside AS400 terminal so that screen shots of the respective jobs should be sent to the clients. so how to handle to replace the screen shots of 1st job with the screen shots of 2nd job in the screenshots folder belongs to root folder.