public static void close_window(image_frame frame) { image_frames.Remove(frame); main_canvas.Children.Remove(frame); }