added resize() function to resize canvas when enabled element width or height changes
Added resize example
Added resize, invert and interpolation features to all example