adding automated image alignment