Fixed iterating through photos