caoi hana bmp decode and render