changed data to imagemagick