function addActiveClass($target) {
            if (!$target) {
              return;
            }
            $target.find('button').addClass('active');
            $selectedNode = $target;
          }
show image dialog

@param {jQuery} $dialog
@return {Promise}