adds global _show_image method
integrates new global _plot_function
adds visualize_fitting_results