Automation of ImageMagick