remaining tools to directives
code cleanup
expose canvas height and width in directive attributes