You have to know how to set up a evironment for python in minecraft first. it is recommented to follow the tutorial(URL is list bellow) to complete evironment settings.
You can download whl file from following link to install pillow.
Unofficial Windows Binaries
pip3 install pillow
Once you finsh the above step, move the file main.py to %appdata%/.minecraft/mcpicy
and modify the code in line number 126th, change the line to the path of your image file.
im = Image.open(r"your/picture/path)")
I know this approach like change the the path maually is terrible but I will amend this function one day when I have somehow more free time,
or you can change the image dynamiclly by adding a feature by yourself.
If every thing above is setted up correctlly,
start minecraft and run the source code, the building should show up in your world.
