add histogram equalization to bitmap