Refactoring and fix bugs

* Updated variables names
* Fix bugs when resize crop-rect with fixed proportions