K means classification algorithm for image classification