Unsupervised visualization of image datasets using contrastive learning