Improve alignment of images