Use localstorage instead of cookies for persisting WEBP support