added drawRect() method to canvas renderer. optimized debug drawing.