Image registration using mutual information