change resizing and selecting of canvas element

new canvas element is created dynamically and is appended to wrapper specified by id;
config.fullSize is changed to config.resize and it will resize canvas according to its wrapper dimensions