Core width/height extraction code in place but largely untested