Updated BMPWriter