Fix infinite loop when dealing with pagination.

There is an infinite loop when dealing with pagination. This can be most easily seen with:

```
images = manager.get_all_images()
```

This is because it calls `self.get_data` which in turn calls `self.__deal_with_pagination` again. And so, and so on... :smile: