heif: Add animation support for AVIF and HEIC files
