edited image retrieval
merged mod_chapp.py