Fix pagination for image not supporting -1 ?