added graphics template and lines drawing