Adjust to new imagemagick version.