some ImageMagick script noodling