Add HOG descriptor and some basic functions for image processing.