lua/storage :  add a second parameter to the finalizer callback

this second argument is a table
* key => the image processed
* value => the filename of the exported file

also make the callbacks optional