Add JPEG-XR support and fix bug in WebP loop.