implented Lua image & table functions