add xOrigin and yOrigin to config