Fixed x-ray syncing and saving, closes #52