Add .png to file name if it has no suffix. Also check saving status.

Haven't tested on linux yet, it should work fine.

Fixes #86