Changed the way photos are found