A class of constacyclic codes over $\mathbb{Z}_4[u]/\langle u^2-1\rangle$ and its Gray images