[TACHYON-12] Add unit tests for ImageWriters

Add unit tests for the subclasses of ImageWriter. 
We can use Integer.intValue instead of hard cast to (int)