Add beginShape method to reference