Fix thumbnails not displaying, popup when generating thumbnail