cleanup more mac drawing state between calls to render_to_cairo