Fixed missing clause to display only public photos