Adding the ability to resize image maintaining ration from only provided width or height

Will automatically calculate the coorisponding width or height an image should be resized to if the rw(ratioWidth) or rh(rationHeight) parameters are provided