Renamed to extractViewDimensions from extractResolution to make its broader use more obvious
Added breaking tests as reported by @rgabo in #264