Added pagination to img list