added a check for item.content so panel-body will not render if it is null
added a function to clean out panel bodies that only have a single image (1 pix image)