generalize image partial for contents/events