Just thought I’d draw you attention to this recent post - seems we already might have a solution that would work, at least on Linux systems…
Something like this might do what you’re after:
$ mrview -platform offscreen anat.mif -size 1024,600 -plane 2 -mode 4 -noannot -capture.grab -exit