Update alignPainting.m