wrap_elements function

Wrap arbitrary graphics in a patchwork-compliant patch