use np.array instead of np.matrix for align
fixed old-style opencv flag