Added dynamic resizing of the canvas and particle systems.