fix program window
added histogram invert