Loading thumbnails, with mouse listener