Why do you need this new function? What does it do that the existing global_contrast_normalize stuff doesn't do?