Implementation of k-means using random initialization for cluster centers for image compression