lua : add support to know and set if an image has a local copy