Run script before and/or after each image

I second this request.
Like other scripts, it would be very useful to be able to pass the % file name arguments to it.