Unify image and file attachment partials