added pgapi to photos screen