Move getBounds and strokePath logic to Kanvas.