fix cosmits plot_image