To take an easy example, suppose we have a linear transformation on R2 that maps (x, y) to (4x+ 2y, 2x+ y). The null space consists of all vectors that are mapped to the 0 vector: 4x+ 2y= 0 and 2x+ y= 0. In fact, 4x+ 2y= 2(2x+ y) so those are the same equation which is equivalent to y= -2x. Rather than getting the single solution, (0, 0), any vector of the form (x, y)= (x, -2x) is in the null space. The set {(1, -2)} is a basis for the one dimensional null space.
Since this operator is maps R2 to itself, and the null space has dimension 1, the image has dimension 2- 1= 1 also. But where the null space is a subspace of the domain, the image is a subspace of the range. Here, both domain and range are R2 but it is useful to make this distinction. While we can write the null space in terms of "x" and "y", to look at the image we need to write u= 4x+ 2y, v= 2x+ y and write the basis of the image in terms of u and v. Here, u= 4x+ 2y= 2(2x+ y)= 2v. A vector in the image is of the form (u, v)= (2v, v)= v(2, 1). {(2, 1)} is a basis for the image.
A slightly harder example: A linear transformation maps (x, y, z) to (x+ y+ z, y+ z, x). Now, if (x, y, z) is in the null space, we have x+ y+ z= 0, y+ z= 0, x= 0. With x= 0, both the first two equations reduce to y+ z= 0 or z= -y. Any vector in the null space is of the form (x, y, z)= (0, y, -y)= y(0, 1, -1) so {(0, 1, -1)} is a basis for the one dimensional null space.
To find a basis for the image, write u= x+ y+ z, v= y+ z, w= x. From the last equation, we an write u= w+ y+ z or u- w= y+ z= v. We have the single equation u- w= v or u= v+ w that must be satisfied for all (u, v, w) in the image. That is, any vector in the image can be written in the form (u, v, w)= (v+ w, v, w)= (v, v, 0)+ (w, 0, w)= v(1, 1, 0)+ w(1, 0, 1). {(1, 1, 0), (1, 0, 1)} is a basis for the image which is two dimensional.