If you want the biggest image from YouTube for a specific video ID, then the URL should be something like this:
if you want to get rid of the "black bars" and do it like YouTube does it, you can use:
And if you can't use the .webp file extension you can do it like this:
Also, if you need the unscaled version, use maxresdefault instead of mqdefault.
Hope this is helpful!