But in the mean time, what will this script actually do?
Beats me.
I just thought you would really be impressed
Actually, the script waits for a logical disk to be added to the system. Then it pounces into action, filters the type of drive and if it determines it's a removable drive, runs a directory listing. The script runs continuously in a command window. It can be killed with CTL-C or by closing the window (man, I should write fiction!).
I interpreted image to mean a directory listing but that can be changed to take any number of actions.
Sometimes when you can't find exactly what you need, building your own is the way to go.
Note: I could not test a floppy drive, CD/DVD will not trigger a directory listing, USB will.