implemented basic window/level adjustment