Change output to imagemagick mogrify command