Use for loop because maskImage is getting weird.