added logic to fetch multiple pages of instagram photos