Pagination for nodes API and custom serializer for images