fix resizing semantics (transposed width/height)