Manipulate images with minimal use of memory via ImageMagick / GraphicsMagick