added new canvas size property to state and new function to add components to entities