canvas updating after complete atttr change