Pagination related fixes in the context of image deletion.