First draft of binary search for WebP.