improved Lua header; fixed image data getter; implented image data setter