improvement on shape-context attribute