add write to PNG format