Update server.py

changed the images functionality due to changes in yaml configuration