example code that saves skia canvas buffer as a bmp image file