Allow taking screenshots through Lua