Added an image writer