Fixed a number of rendering issues

Fixed rendering issues, clearing the canvas properly for the animation and such.