Added method to generate signature for a single image
Fixed a number of bugs, tested kmeans.