Wouldn't it be better with `$params` first ? It would allow to override `showSummary` and `showImage` if needed.