converted userPortrait directive from element to attribute directive