Fixed ref-server.py
Fixed run-imageapp.py