changes necessary to make civitatis images download work