Macro to Export Entity Images

I am looking for a simple way to export a image of an Entity using the Entity_Name.jpg


Any ideas on how I can code that as a Macro? 


I looked around and found the Export Image Options object, but could not find the where to use them.