Using chi-square distribution

The chi-squared distance allows for an approximately normalized
distance across our images and fast searching for similarities.