added modified imagemagick