Fix up image_magick sample.

Work with new squares interface.  Also make it work when the custom image doesn't exist.