ImageWriter (tests in next commit).