Added canvas resizing. Less pixels means more likely to fill up the canvas.