changed to imagemagick