move selection of intra pred-mode into transform-tree analysis