Please check out the instructions below and the Github files.
I made this with one main .py file, and included a simple html page and image that you can store on your raspberry pi pico w.
A super simple webserver written in MicroPython that serves up simple webpages and files from a pico w