use Imagick if available instead of gd #107

If Imagick is available it uses it to resize/rotate images

Refs: #107