maintain compatibility with older versions of imagemagick