properly paginate images in imagelists