A need help to changing gifs with a stream deck

Hi.
I have a project with 2 panel 64*64 and a stream deck.
I want changing the displayed gif on the panel with a stream deck.
For use a stream deck a use this Stream deck code.
what is the best way to use led-image-viewer if press key 0 → play 1.gif
else if press key1 → play 2.gif
And other …