I made a function in lua to take a v3 image handle and save a bitmap to the file system.
I uploaded the function and a short demo here:
http://verge-rpg.com/downloads/lua-save-bitmap-demo
The function was converted from one found originally here:
http://verge-rpg.com/general/tileset-maker/