change to pixGetDimensions rather than perperate getPix(Width|Height|Depth) calls.