Added image writer tests