isolated photodownloader logic.