Saving and restoring rectangle states

added canvas5 element and styles