using scale over ratio for resizing