Resize svg canvas properly