Sorted the missing thumbnails on page load