Added action hooks to tool definition
Refactored sizing of canvas to use element size rather than css so that image is displayed at full quality, not zoomed up from the initial size