Avoid crash when saving unknown image types

https://retrace.fedoraproject.org/faf/problems/1586225/
Support writing GIF image data to files
Convert GIF images to PNG when saving Vorbis tags