Before, the length of the first frame was used for all frames. Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/300>
Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/267>
This gives us sandboxed image decoding and others the option to extend Loupe with other image formats.