adding write image filter