Added resizing with keeping aspect ratio when dimension is 0.
Merge pull request #663 from mcharmas/master

Added resizing with keeping aspect ratio when dimension is 0.