Pagination working with random pictures. Crashing fixed