making scale factor and canvas id variable

- making scale factor variable. Add scale attribute to directive
- making canvas id variable. Add canvassed attribute