Executes ImageMagick commands, capturing stdout/stderr, mirroring the behavior of mini_magick's MiniMagick::Shell.