Normalizing distance to centroid by length of image diagonal