Fixed my silly changes and a bug in setCanvasSize