Refactored the ImageWriter constructor calls to make it easier to replace with the final version of the Image Writer