Change get_image_pattern_words so that subsamping is done as in paper describing the word extraction. Paper: G. Qiu, Indexing chromatic and achromatic patterns for content-based colour image retrieval