ESP8266 + waveshare 4.2inch e-paper: download image from internet and display it

I have an ESP8266 board and a Waveshare 4.2inch e-paper
I would like to achieve that on starting the system it should connect via wifi and download a jpeg image from a website loading it into the SPIFFS and then display it into the connected e-paper.
Is there any "ready to play" sketch for that?

Thanks in advance!