Fixed pagination in image list template.