normalize and add contrast to images