add extend method to Graphic