made rendering fully active and added update method to the canvas state and shape definition