Fixed a bug introduced by a refactoring
added image writer smoke test
renamed test image file