added recursive clustering
tweaked image distances