Save image with file

 From:  Phiro
10390.5 
If you want to save your model AND the image in the same time, you could add this line in the save.js and the saveas.js script files.