ImageBuf::set_write_format and set_write_tiles lets you override the
data format and tiling to use when subsequently calling IB::write().
Read-from-file ImageBufs should get set up to cache on construction
Conform to new ImageBuf construction and write conventions
Minor reformatting