Better handling of canvas size

Canvas height and width is matched to that of its parent.