1- extract the portrait from the mpq
2- convert it to a mdl file
3- change the skin path and save
4- convert back to a mdx file
5- import and give it the name of the unit the portrait is for, plus "_portrait". For example, if the unit is named Pamela Anderson, the portrait must be named Pamela Anderson_Portrait.mdx