adding imagewriter