Image Compression and Data Clustering: New Takes on Some Old Problems