added fetching of photos