Method GetMatrixImage modified