Found a temporary fix for getting thumbnails (loop until the image is
loaded), and reduced the size of the thumbnails to fit in the GUI.