HeightRatio WidthRatio added.

To do: more smooth work