Added option extent to allow resizing plus extending the canvas to fit the resolution

When resizing a 128x256 image to 64x64, you normally get a 32x64 image. Using `extent: true` you will get a 64x64 image while preserving aspect, filling the rest with `background` (`none` by default).