Updated imageapp.py to more recent version