There is no thread.
Since you removed all possibilities for code, I saw no reason to continue using it.
I used follow the coding to determine the source
<picture>
<source media="(min-width: 800px)" srcset="png">
<source media="(max-width: 768px)" srcset="webp">
<img src="png"/>
</picture>