Resize svg and add origin position