fix svg and canvas dimensions