Fixing inverted logic on Window::isValid()
Fixes to getPixelData{Type|Format} calls. Fixes #530