Fix export to JPEG

The JPEG format exports files with alpha because only JPG extension is managed.