[TACHYON-12] Add unit tests for ImageWriters

Add unit tests for the subclasses of ImageWriter. 
not a fan of this logic. You can split the data on `\n` and loop that way, there for exceptions are not used for code flow.