Apply avatar visibility by using a matrix.