Unified scaling parameters into ratioWidth and ratioHeight.