Change rotation anchor to middle and added canvas clearing function.