added a method to constrain aspect ratio
Merge pull request #20 from ekurutepe/master

added a method to constrain aspect ratio