update x, add img to ix