MRG: remove _write_header method

The write_header method in the image classes was only being used to write zero
bytes into a file where the data was not exactly at the end of the header.  Use
the seek_tell function for this, and remove the _write_header method from all
classes.