won't break write if pixel data isn't the same as output encoding type