Added paths file, image cache file and refresh function