Fix for Issue #62 and #71

I have fixed the issue for keepRatio on the corners when rotation has been applied(issue #62).  I also realized that my previous fix for #71 wasn't working in all cases.

Best Regards,
Dan H.