Also, I assume you knew you can press 'p' to take a screenshot? It has some issues, but this lua script fixes them all and lets you easily organize the screenshots: http://starcatcher.us/scripts/#37 . Yours is still nice to have I guess :P
Also this probably belongs in the Lua section of the forums so I will move it there later.