lua : autodocumentation, initial implementation
prevent crash when exporting exactly 9 images

Apparently our fraction calculations yeld results >1.0 for some specific number of images