Add a scale resize method

This can be used to scale an image preserving the aspect ratio. 
Ex: Scale an image of size 630x630 to 830x630. The extra width will have the extra width padded with the background color.