Load from bmp or tree