Fix for latest imagemagick version