lua : yield while explicitely exporting image from lua