added test code to show bitmap in canvas.