workaround for old imagemagick  version