Using KMeans for compressing the image by converting all the colors in the image to just 16 colors.
The size of the resultant image obtained from the code willbe reduced as the number of colors have been reduced in he image by using the KMeans clustering algorithm.