bugfixes: use original height/width to calculate ratio