def METHOD_NAME(self, container):
    self.viewer = self.pipeline.get('viewer')
    # TRANSFORM OPTIONS
    fr = Widgets.Frame("Flip / Swap")
    captions = (('Transform:', 'label', 'hbox1', 'hbox'),
                ('_sp1', 'spacer', 'hbox2', 'hbox'),
                )
    w, b = Widgets.build_info(captions, orientation='vertical')
    for wname, name, tf in (('flip_x', "Flip X", self._flip_x),
                            ('flip_y', "Flip Y", self._flip_y),
                            ('swap_xy', "Swap XY", self._swap_xy)):
        btn = Widgets.CheckBox(name)
        b[wname] = btn
        btn.set_state(tf)
        btn.add_callback('activated', self.set_transforms_cb)
        b.hbox1.add_widget(btn, stretch=0)
    b.flip_x.set_tooltip("Flip the image around the X axis")
    b.flip_y.set_tooltip("Flip the image around the Y axis")
    b.swap_xy.set_tooltip("Swap the X and Y axes in the image")
    b.copy_from_viewer = Widgets.Button("Copy from viewer")
    b.copy_from_viewer.set_tooltip("Copy flip/swap setting from viewer")
    b.copy_from_viewer.add_callback('activated', self.copy_from_viewer_cb)
    b.hbox2.add_widget(b.copy_from_viewer, stretch=0)
    b.hbox2.add_widget(Widgets.Label(''), stretch=1)
    self.w.update(b)
    fr.set_widget(w)
    container.set_widget(fr)