write chroma according to chroma size not luma size fix