Fix export to JPEG

The JPEG format exports files with alpha because only JPG extension is
managed.
Merge pull request #16 from diodfr/master

Fix export to JPEG