fix "save image" creating a folder instead of an image
Merge pull request #32 from sobjornstad/master

Fix save image bug