Better command-line ImageMagick image processing