the $is_image is to determine whether to use getImage or getIcon.

in order to keep code consistent, I just have one array to store data $header['privileges']['image'] , not $header['privileges']['icon]