refactor Image.UnmarshalBinaryOptimized