add null check, dont try to save empty images
Merge branch 'master' of github.com:enjalot/cmdrslog