Fixed undo to get shapes array uptodate, reset svg size for shorter windows