How to find a basis of an image of a linear transformation?
Reducing your matrix $$ \begin{pmatrix} 2 & -1 & -1 \\ 1 & -2 & 1 \\ 1 & 1 & -2\end{pmatrix} $$ to row-echelon form gives $$\begin{pmatrix} 1 & -2 & 1\\0 & 1 & -1\\0 & 0 & 0\end{pmatrix},$$
and a basis for the image of $A$ is given by a basis for the column space of your matrix, which we can get by taking the columns of the matrix corresponding to the leading 1's in any row-echelon form.
This gives the basis $\{(2,1,1), (-1,-2,1)\}$ for the image of $A$.