Using a normalized function for comparing images so that the threshold means something (too me at least)