Added tests for resizing and keeping aspect ratio.