Add windowLevel
Tweak frame calculation