How to save a graphic created with D2 commands to a bmp