full paths to photos and remove global var