Image enhancement with histogram equalization