Code for compositing animated webp images