equalize hist, gray and scale