def load_image(self, filename): from dials.util.spotfinder_frame import create_load_image_event if self.frame is not None: create_load_image_event(self.frame, filename)