check for ImageMagick and fail gracefully

and so the example doesn't just fail inexplicably without ImageMagick installed :)