Add decodeGifAnimation and decodeWebPAnimation convenience functions.