BMPWriter use buffer