Use same logic to load WebP image that other formats