Update server.py

code for retaining the default flavor and default image even after refreshing the page