Canvas size is now set correctely and resize now has a listener to auto update size and redraw. Fix #4