restore canvas style after changing them