Now renders different icons based on resource type