backport the webp load from buffer fix