File::OFStream: Fix creation of output images with some formats

Presence of File::create() class was creating an empty file in many cases, which was then detected as a pre-existing file by the File::OFStream constructor, causing an error.
Bug introduced by pull request #92.
Also fixed writing to .mgh.gz format.