An improved random forest classifier for image classification