Add test for cropped image generation

Requires imagemagick