imagewriter fix