Allow taking screenshots through Lua
!5600 (merged)