Canvas block style reset on canvas size change