Update spacing of images