Use resize+crop with gravity

Allows large images to be used as a template for small centred images.
Merge pull request #3 from afternoon/master

Use resize+crop with gravity