Added patch for imagemagick