[WIP] work in progress for lua script - images management