X is widthRatio and Y is heightRatio